fix bugs with gpx passthrough. (#1197)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Thu, 26 Oct 2023 23:24:23 +0000 (17:24 -0600)
committerGitHub <noreply@github.com>
Thu, 26 Oct 2023 23:24:23 +0000 (17:24 -0600)
commit0b19ddae8852b23092b1c7caa93504769ec262f5
treeb401f4ca91e517e083ee954714c329069ccb346d
parentc66891680b364341d590fe6ed1b718da0f8ed768
fix bugs with gpx passthrough. (#1197)

with gpx 1.0, any extension data that was a child of rte or trk
was lost.  I beleive this used to work but has been broken for quite
a while.

with gpx 1.0 extension data that was a child of gpx could be
erroneously rewritten as part of the final wpt/rtept/trkpt.

with gpx 1.1 extension data that was a chile of trkseg could be
erroneously rewritten as part of the final wpt/rtept/trkpt.

I note we currently drop any extension data that is a child of gpx,
,a child of trkseg, or a child of metadata.
gpx.cc
reference/gpxpassthrough10.gpx [new file with mode: 0644]
reference/gpxpassthrough10~gpx.gpx [new file with mode: 0644]
reference/gpxpassthrough11.gpx [new file with mode: 0644]
reference/gpxpassthrough11~gpx.gpx [new file with mode: 0644]
testo.d/gpx.test
tools/schema/gpx/master.xsd
tools/schema/gpx/testonlyschema.xsd [new file with mode: 0644]